package com.xiaotu.easypoi.testexport.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 张晓
 * @create 2021-05-27 16:21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StudentEntity {

    /**
     * id
     */
    private String id;
    /**
     * 学生姓名
     */
    @Excel(name = "学生姓名", height = 20, width = 30, isImportField = "true_st")
    private String name;
    /**
     * 学生性别
     */
    @Excel(name = "学生性别", replace = {"男_1", "女_2"}, suffix = "生", isImportField = "true_st")
    private int sex;

    /**
     * 出生日期
     */
    @Excel(name = "出生日期", databaseFormat = "yyyyMMddHHmmss", format = "yyyy-MM-dd", isImportField = "true_st", width = 20)
    private Date birthday;

    /**
     * 进校日期
     */
    @Excel(name = "进校日期", databaseFormat = "yyyyMMddHHmmss", format = "yyyy-MM-dd")
    private Date registrationDate;

    /**
     * 学生头像
     */
    @Excel(name = "学生头像", type = 2, width = 20, height = 20, imageType = 1, savePath = "D:\\home\\bpg\\excelUploadFile")
    private String imgUrl;

}
